package org.codefinger.json.parser.deserializer;

import org.codefinger.json.parser.JSONArrayDeserializer;
import org.codefinger.json.parser.JSONLexer;
import org.codefinger.json.parser.JSONObjectDeserializer;

public class ObjectDeserializerForNull implements JSONObjectDeserializer {

	public static final ObjectDeserializerForNull	INSTANCE	= new ObjectDeserializerForNull();

	private ObjectDeserializerForNull() {

	}

	@Override
	public JSONArrayDeserializer createArrayDeserializer() {
		return ArrayDeserializerForNull.INSTANCE;
	}

	@Override
	public JSONObjectDeserializer createObjectDeserializer() {
		return INSTANCE;
	}

	@Override
	public void setFieldName(JSONLexer jsonLexer) {
		jsonLexer.skipCurrentString();
	}

	@Override
	public void setFieldName(String fieldName) {

	}

	@Override
	public void setValue(Object value) {

	}

	@Override
	public void setStringValue(JSONLexer jsonLexer) {
		jsonLexer.skipCurrentString();
	}

	@Override
	public void setIntValue(String value) {

	}

	@Override
	public void setFloatValue(String value) {

	}

	@Override
	public void setFalseValue() {

	}

	@Override
	public void setTrueValue() {

	}

	@Override
	public Object getDeserializedValue() {
		return null;
	}

}
